home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AGA Toolkit '97
/
The AGA Toolkit '97.iso
/
graphics
/
misc
/
gifkit
/
gifkit.doc
< prev
next >
Wrap
Text File
|
1996-09-07
|
4KB
|
78 lines
GIF Tool Kit Version 1.00
The GIF tool kit is a set of tools for manipulating GIF image files. I
wrote it because I needed to do visual crops without using three megabytes
on a two megabyte machine. Once the basics of the program were done, it
was fairly easy to add other capabilities to the program. In addition to
doing visual crops, the program can be used to resize GIFs', do horizontal
and vertical flips and rotate the image 90 degrees.
The program sets up a 640x400 interlaced screen two planes deep to
display the image. This results in a somewhat stark image, but it is
fine for doing visual crops and showing the results of the other options.
It also results in very low chip memory usage, even for very large GIFs'.
The program can handle GIFs' up to 1280x800. If the GIF is wider than
640 or higher than 400 pixels, a half size image is shown on the display
screen. The decoder and encoder routines are written in C so they are
not particularly fast. I hope to replace them with assembly routines.
Although the program dosen't require a lot of chip ram, 1280x800 GIFs
do require a lot ram. A GIF this size would require over 2 megabytes,
1 megabyte for the original image and 1 meg for the temporary buffer.
The program was written for 2.x operating system and requires the
ASL library.
The top row of buttons on the interface screen should be fairly
intuitive, Quit to exit the program, Load to load a GIF file, Save to
save an altered image, and Display to display the image. I should note
that the program does not buffer the original image (to save memory).
As you alter the image, only the altered image is saved and that is
what is displayed when you hit the Display button. If you don't like
the results of your handiwork, you will have to reload the original
and start over. Below is a description of the options.
Visual Crop
After you load a GIF and hit this button, you will be presented with a
B&W lowres image with a box around it. The size of the box can be
changed by dragging the top left hand corner or the lower right corner
with the mouse pointer. This is done by moving the pointer close to
the corner you want to move, depressing and holding down the left
mouse button. Holding the button down and slowly moving the mouse will
change the size of the box. You will notice that as you change the
size of the box, the size of the resultant image is displayed at the
lower left corner of the screen. When you have the size image you
want, click on the ACCEPT on the lower right of the screen.
Sizer
Hitting this button will put up a requester asking for a new width and
height. If you enter a zero for either the width or height, the
program will figure out the other dimension based on the aspect ratio
of the original image. The images can be blown-up to 1280x800 or
reduced to 10x10 (and you won't be able to recognize it if you make it
10x10).
Flips
Hit the Horizontal Flip button and the GIF will be flipped on the
horizontal axis. The Vertical Flip flips it along the vertical axis.
Rotate 90 Degrees
Like it says, everytime you hit this button, it rotates the image
90 degrees.
One final note, save your image when you are finished changing it.
The program doesn't warn you to save when you quit.
Milt Henderson
6815 Wallsey Dr
San Diego,Ca
92119
"The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated."